package com.androidx.p013lv.mine.databinding;

import android.text.TextUtils;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.base.bean.UserInfo;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.SettingActivity;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.ActivitySettingLayoutBindingImpl */
public class ActivitySettingLayoutBindingImpl extends ActivitySettingLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback10;
    private final View.OnClickListener mCallback11;
    private final View.OnClickListener mCallback12;
    private final View.OnClickListener mCallback13;
    private final View.OnClickListener mCallback5;
    private final View.OnClickListener mCallback6;
    private final View.OnClickListener mCallback7;
    private final View.OnClickListener mCallback8;
    private final View.OnClickListener mCallback9;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final TextView mboundView1;
    private final LinearLayout mboundView10;
    private final LinearLayout mboundView11;
    private final LinearLayout mboundView12;
    private final TextView mboundView13;
    private final LinearLayout mboundView2;
    private final TextView mboundView3;
    private final TextView mboundView4;
    private final LinearLayout mboundView5;
    private final LinearLayout mboundView6;
    private final TextView mboundView7;
    private final LinearLayout mboundView8;
    private final TextView mboundView9;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 14);
    }

    public ActivitySettingLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 15, sIncludes, sViewsWithIds));
    }

    private ActivitySettingLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (Toolbar) objArr[14]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[10];
        this.mboundView10 = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[11];
        this.mboundView11 = linearLayout3;
        linearLayout3.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[12];
        this.mboundView12 = linearLayout4;
        linearLayout4.setTag(null);
        TextView textView2 = (TextView) objArr[13];
        this.mboundView13 = textView2;
        textView2.setTag(null);
        LinearLayout linearLayout5 = (LinearLayout) objArr[2];
        this.mboundView2 = linearLayout5;
        linearLayout5.setTag(null);
        TextView textView3 = (TextView) objArr[3];
        this.mboundView3 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[4];
        this.mboundView4 = textView4;
        textView4.setTag(null);
        LinearLayout linearLayout6 = (LinearLayout) objArr[5];
        this.mboundView5 = linearLayout6;
        linearLayout6.setTag(null);
        LinearLayout linearLayout7 = (LinearLayout) objArr[6];
        this.mboundView6 = linearLayout7;
        linearLayout7.setTag(null);
        TextView textView5 = (TextView) objArr[7];
        this.mboundView7 = textView5;
        textView5.setTag(null);
        LinearLayout linearLayout8 = (LinearLayout) objArr[8];
        this.mboundView8 = linearLayout8;
        linearLayout8.setTag(null);
        TextView textView6 = (TextView) objArr[9];
        this.mboundView9 = textView6;
        textView6.setTag(null);
        setRootTag(view);
        this.mCallback13 = new OnClickListener(this, 9);
        this.mCallback11 = new OnClickListener(this, 7);
        this.mCallback8 = new OnClickListener(this, 4);
        this.mCallback6 = new OnClickListener(this, 2);
        this.mCallback12 = new OnClickListener(this, 8);
        this.mCallback10 = new OnClickListener(this, 6);
        this.mCallback9 = new OnClickListener(this, 5);
        this.mCallback7 = new OnClickListener(this, 3);
        this.mCallback5 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 32;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.version == i) {
            setVersion((String) obj);
        } else if (C1206BR.userInfo == i) {
            setUserInfo((UserInfo) obj);
        } else if (C1206BR.cacheSize == i) {
            setCacheSize((String) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((SettingActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivitySettingLayoutBinding
    public void setVersion(String str) {
        this.mVersion = str;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.version);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivitySettingLayoutBinding
    public void setUserInfo(UserInfo userInfo) {
        updateRegistration(0, userInfo);
        this.mUserInfo = userInfo;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.userInfo);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivitySettingLayoutBinding
    public void setCacheSize(String str) {
        this.mCacheSize = str;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.cacheSize);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivitySettingLayoutBinding
    public void setClick(SettingActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeUserInfo((UserInfo) obj, i2);
    }

    private boolean onChangeUserInfo(UserInfo userInfo, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i != C1206BR.mobile) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        String str;
        String str2;
        String str3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        String str4 = this.mVersion;
        UserInfo userInfo = this.mUserInfo;
        String str5 = this.mCacheSize;
        SettingActivity.OnClick onClick = this.mClick;
        long j2 = j & 49;
        boolean z2 = false;
        String str6 = null;
        if (j2 != 0) {
            str2 = userInfo != null ? userInfo.getMobile() : null;
            z = TextUtils.isEmpty(str2);
            if (j2 != 0) {
                j = z ? j | 128 | 2048 : j | 64 | 1024;
            }
            str = z ? "未綁定" : "更換";
        } else {
            str2 = null;
            str = null;
            z = false;
        }
        long j3 = j & 36;
        if (j3 != 0) {
            if (str5 == null) {
                z2 = true;
            }
            if (j3 != 0) {
                j |= z2 ? 512 : 256;
            }
        }
        if ((1024 & j) != 0) {
            str3 = String.valueOf("綁定手機號" + str2);
        } else {
            str3 = null;
        }
        long j4 = j & 36;
        if (j4 == 0) {
            str5 = null;
        } else if (z2) {
            str5 = "0M";
        }
        long j5 = 49 & j;
        if (j5 != 0) {
            if (z) {
                str3 = "綁定手機";
            }
            str6 = str3;
        }
        if ((32 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback5);
            this.mboundView10.setOnClickListener(this.mCallback10);
            this.mboundView11.setOnClickListener(this.mCallback11);
            this.mboundView12.setOnClickListener(this.mCallback12);
            this.mboundView13.setOnClickListener(this.mCallback13);
            this.mboundView2.setOnClickListener(this.mCallback6);
            this.mboundView5.setOnClickListener(this.mCallback7);
            this.mboundView6.setOnClickListener(this.mCallback8);
            this.mboundView8.setOnClickListener(this.mCallback9);
        }
        if (j5 != 0) {
            TextViewBindingAdapter.setText(this.mboundView3, str6);
            TextViewBindingAdapter.setText(this.mboundView4, str);
        }
        if (j4 != 0) {
            TextViewBindingAdapter.setText(this.mboundView7, str5);
        }
        if ((j & 34) != 0) {
            TextViewBindingAdapter.setText(this.mboundView9, str4);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = true;
        switch (i) {
            case 1:
                SettingActivity.OnClick onClick = this.mClick;
                if (onClick == null) {
                    z = false;
                }
                if (z) {
                    onClick.btnBack();
                    return;
                }
                return;
            case 2:
                SettingActivity.OnClick onClick2 = this.mClick;
                if (onClick2 == null) {
                    z = false;
                }
                if (z) {
                    onClick2.bindingPhone();
                    return;
                }
                return;
            case 3:
                SettingActivity.OnClick onClick3 = this.mClick;
                if (onClick3 == null) {
                    z = false;
                }
                if (z) {
                    onClick3.exchangeVip();
                    return;
                }
                return;
            case 4:
                SettingActivity.OnClick onClick4 = this.mClick;
                if (onClick4 == null) {
                    z = false;
                }
                if (z) {
                    onClick4.clearCatch();
                    return;
                }
                return;
            case 5:
                SettingActivity.OnClick onClick5 = this.mClick;
                if (onClick5 == null) {
                    z = false;
                }
                if (z) {
                    onClick5.updateVersion();
                    return;
                }
                return;
            case 6:
                SettingActivity.OnClick onClick6 = this.mClick;
                if (onClick6 == null) {
                    z = false;
                }
                if (z) {
                    onClick6.accCredentialsBtn();
                    return;
                }
                return;
            case 7:
                SettingActivity.OnClick onClick7 = this.mClick;
                if (onClick7 == null) {
                    z = false;
                }
                if (z) {
                    onClick7.retrieveAccBtn();
                    return;
                }
                return;
            case 8:
                SettingActivity.OnClick onClick8 = this.mClick;
                if (onClick8 == null) {
                    z = false;
                }
                if (z) {
                    onClick8.contactOfficial();
                    return;
                }
                return;
            case 9:
                SettingActivity.OnClick onClick9 = this.mClick;
                if (onClick9 == null) {
                    z = false;
                }
                if (z) {
                    onClick9.changeAccount();
                    return;
                }
                return;
            default:
                return;
        }
    }
}
